<?php
namespace app\admin\model;

use think\Model;

class Participant extends Model
{
    protected $table = 'gm_participant';//$table 是属性，里边是表名      protected 受保护的
    public function getStatusTurnAttr($value, $data)
    {
        $turnArr = [0=>lang('status0'), 1=>lang('status1')];
        return $turnArr[$data['status']];
    }
}